﻿using System;
using System.Linq;
using CRM.Admin.Contracts.Dto.Customer;
using CRM.Admin.Contracts.Model.Customer;
using KingsSharp.Common.Data;
using KingsSharp.Core;

namespace CRM.Admin.Contracts.Contract.Customer
{
    /// <summary>
    /// 联系人业务契约
    /// </summary>
    public interface ILinkManService:IDependency
    {

        /// <summary>
        /// 顾客联系人明细集合
        /// </summary>
        IQueryable<LinkMan> LinkMans { get; }

        /// <summary>
        /// 新增联系人
        /// </summary>
        /// <param name="dtos">联系人信息dto</param>
        /// <returns></returns>
        OperationResult Insert(params LinkManDto[] dtos);


        /// <summary>
        /// 编辑顾客联系人明细
        /// </summary>
        /// <param name="dtos">顾客联系人明细信息dto</param>
        /// <returns></returns>
        OperationResult Update(params LinkManDto[] dtos);

        /// <summary>
        /// 删除顾客联系人
        /// </summary>
        /// <param name="ids">要删除的主键数组</param>
        /// <returns></returns>
        OperationResult Delete(params Guid[] ids);
    }
}
